package com.mika.music.service;

import com.mika.music.mapper.MusicLabelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicLabelService {
    @Autowired
    private MusicLabelMapper musicLabelMapper;

    public Integer addMusicLabel(Integer musicId, String label) {
        return musicLabelMapper.addMusicLabel(musicId, label);
    }

    public Integer deleteMusicLabelByMusicId(Integer musicId) {
        return musicLabelMapper.deleteMusicLabelByMusicId(musicId);
    }

    public List<String> getLabelByMusicId(Integer musicId) {
        return musicLabelMapper.getLabelByMusicId(musicId);
    }
}
